\hypertarget{logic_8c}{
\section{logic.c File Reference}
\label{logic_8c}\index{logic.c@{logic.c}}
}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
float \hyperlink{logic_8c_a7e569df3db79d77b7150eb450e0decd2}{calculatePrice} (float parcelWeight)
\begin{DoxyCompactList}\small\item\em \hyperlink{logic_8c}{logic.c} \par
 Determines the price to deliver the parcel. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Function Documentation}
\hypertarget{logic_8c_a7e569df3db79d77b7150eb450e0decd2}{
\index{logic.c@{logic.c}!calculatePrice@{calculatePrice}}
\index{calculatePrice@{calculatePrice}!logic.c@{logic.c}}
\subsubsection[{calculatePrice}]{\setlength{\rightskip}{0pt plus 5cm}float calculatePrice (
\begin{DoxyParamCaption}
\item[{float}]{parcelWeight}
\end{DoxyParamCaption}
)}}
\label{logic_8c_a7e569df3db79d77b7150eb450e0decd2}


\hyperlink{logic_8c}{logic.c} \par
 Determines the price to deliver the parcel. 

\begin{DoxyItemize}
\item $<$2.5 kg costs \$3.50 per kg \par
 \item 2.5-\/5 kg costs \$2.85 per kg \par
 \item $>$5 kg costs \$2.45 per kg 
\begin{DoxyParams}{Parameters}
{\em parcelWeight} & -\/ the weight of the parcel \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
price -\/ The price to deliver the parcel 
\end{DoxyReturn}
\end{DoxyItemize}
